package com.example.demos.dao;

import com.example.demos.model.User;
import org.springframework.data.repository.CrudRepository;

/**
 * h2 dao.
 *
 * @author liucheng
 * @since 0.1 2021-06-06 8:18 PM
 **/
public interface H2Dao extends CrudRepository<User, Long> {
    User findByName(String name);

    @Override
    Iterable<User> findAll();

    @Override
    void delete(User user);
}
